//
//  LJAnimationListNavigationController.m
//  LJAnimationsDemo
//
//  Created by raymond on 17/1/3.
//  Copyright © 2017年 raymond. All rights reserved.
//

#import "LJAnimationListNavigationController.h"
#import "LJAnimationListController.h"

@interface LJAnimationListNavigationController ()

@end

@implementation LJAnimationListNavigationController

- (instancetype)init {
    if (self = [super initWithRootViewController:[[LJAnimationListController alloc] init]]) {
        [self setNavigationBarHidden:YES animated:NO];
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIImageView *iconImageView = [[UIImageView alloc] initWithFrame:self.view.bounds];
    iconImageView.image = [LJAppService launchImage];
    [self.view addSubview:iconImageView];
    
    [UIView animateWithDuration:1.f delay:2.f options:0 animations:^{
        iconImageView.transform = CGAffineTransformMakeScale(1.2f, 1.2f);
        iconImageView.alpha = 0.f;
    } completion:^(BOOL finished) {
        [LJNotificationCenter postNotificationName:noti_showHomeTableView object:nil];
        [iconImageView removeFromSuperview];
    }];
    
}

@end
